package com.chance.cc.crawler.prod.command.schedule.news.qimai;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.qimai.QimaiPublishCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @ClassName song
 * @Description TODO
 * @Author ding
 * @Date 2021/9/9 14:19
 * @Version 1.0
 **/
public class QimaiCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        republishCrawlerScheduleJob(QimaiPublishCrawlerSchedulerJob.appStore());//苹果
      // republishCrawlerScheduleJob(QimaiPublishCrawlerSchedulerJob.oppo());//oppo
   // republishCrawlerScheduleJob(QimaiPublishCrawlerSchedulerJob.huawei());//华为
      // republishCrawlerScheduleJob(QimaiPublishCrawlerSchedulerJob.mi());//小米
       // republishCrawlerScheduleJob(QimaiPublishCrawlerSchedulerJob.vivo());//vivo

        //deleteCrawlerJob(QimaiPublishCrawlerSchedulerJob.vivo());
    }

   public static void republishCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_3);
    }
    public static void deleteCrawlerJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_3);
    }
}
